Your browser does not support the HTML5 canvas tag.

Try to set the miterLimit to 4 (then, the miter length will exceed the miter limit), and when the lines meet it will be displayed as lineJoin="bevel".